﻿#include "second_window.h"

SecondWindow::SecondWindow(QWidget *parent) : QWidget(parent)
{
    setWindowFlags(Qt::Window | Qt::WindowStaysOnTopHint);

    QPushButton* button1 = new QPushButton();
    button1->setText("点击");

    QPushButton* button2 = new QPushButton();
    button2->setText("点击");

    QHBoxLayout* layout = new QHBoxLayout();
    layout->addWidget(button1);
    layout->addWidget(button2);

    setLayout(layout);
    setGeometry(50, 50, 200, 100);
}
